package com.xbongbong.pro.label.pojo.dto;

import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author guohui.zhang
 * @Title: 标签分组保存实体
 * @date 2020/11/310:48
 */
@Getter
@Setter
@ToString
public class LabelGroupSaveDTO extends BaseDTO {

    private static final long serialVersionUID = 5859829534513548133L;
    /**
     * 标签分组名称
     */
    @NotBlank(message = "{dto.msg.LabelGroupSaveDTO.name.NotNull}")
    private String name;
    /**
     * appid
     */
    @NotNull(message = "{dto.msg.appId.NotNull}")
    private Long appId;
    /**
     * formId
     */
    @NotNull(message = "{dto.msg.LabelGroupSaveDTO.formId.NotNull}")
    private Long formId;
    /**
     * 分组id
     */
    @NotNull(message = "{dto.msg.LabelGroupSaveDTO.id.NotNull}")
    private Long id;
    /**
     * businessType
     */
    private Integer businessType;

    public LabelGroupSaveDTO() {
        id =0L;
    }

    public LabelGroupSaveDTO(String name, Long appId, Long formId, Long id, Integer businessType) {
        this.name = name;
        this.appId = appId;
        this.formId = formId;
        this.id = id;
        this.businessType = businessType;
    }
}
